package com.xtkj.superclub_entity.entity.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xtkj.superclub_entity.entity.user.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author lizheqi
 * @create 2019-12-25-10:53
 */
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("address")
public class Address implements Serializable {
    @TableId(value = "address_id",type = IdType.INPUT)
    private String addressId;//地址编号
    private String address;//地址
    private int isDefault;//是否是常用地址
    private String receiver;//收货人
    private String receiverTel;//收货人电话
    private String userId;
    @TableField(exist = false)
    private User user;//用户编号
}
